package com.base.cn.platform.os.controller.statistics.pvuv;

import com.base.cn.platform.os.common.controller.BaseController;
import com.base.cn.platform.os.common.utils.result.ResultUtil;
import com.base.cn.platform.os.entity.statistics.pvuv.ZStatisticsPageViewCount;
import com.base.cn.platform.os.service.statistics.pvuv.ZStatisticsPageViewCountBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * PV统计Controller
 *
 * @author s.li
 * @date 2019/04/17
 */
@RestController
@RequestMapping("/manage/statistics")
public class ZStatisticsPageViewCountController extends BaseController {

    @Autowired
    private ZStatisticsPageViewCountBiz zStatisticsPageViewCountBiz;

    /**
     * 添加PV统计数据
     * @param zStatisticsPageViewCountList
     */
    @RequestMapping("/createPageViewCount")
    public Map<String,Object> createPageViewCount(@RequestBody List<ZStatisticsPageViewCount> zStatisticsPageViewCountList){
        zStatisticsPageViewCountBiz.createPageViewCount(zStatisticsPageViewCountList);
        return ResultUtil.SUCCESS();
    }
}
